package com.dzu.gulimall.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dzu.common.utils.PageUtils;
import com.dzu.gulimall.member.entity.MemberEntity;
import com.dzu.gulimall.member.exception.PhoneExitsException;
import com.dzu.gulimall.member.exception.UserNameExitsException;
import com.dzu.gulimall.member.vo.MemberLoginVo;
import com.dzu.gulimall.member.vo.MemberRegistVo;
import com.dzu.gulimall.member.vo.SocialUser;

import java.util.Map;

/**
 * 会员
 *
 * @author zhaodong
 * @email zhaodong@qq.com
 * @date 2021-04-11 21:49:53
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);


    void regist(MemberRegistVo vo);

    void checkPhonelUnique(String phone) throws PhoneExitsException;

    void checkUserNameUnique(String userName) throws UserNameExitsException;

    MemberEntity login(MemberLoginVo vo);

    MemberEntity login(SocialUser socialUser);

}


